package com.cd.hospital.modules.service.impl;

import com.cd.hospital.modules.dao.DepartmentTagsDao;
import com.cd.hospital.modules.entity.DepartmentTagsEntity;
import com.cd.hospital.modules.service.DepartmentTagsService;
import com.xiaoleilu.hutool.date.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("departmentTagsService")
public class DepartmentTagsServiceImpl implements DepartmentTagsService {
	@Autowired
	private DepartmentTagsDao departmentTagsDao;
	
	@Override
	public DepartmentTagsEntity queryObject(Integer id){
		return departmentTagsDao.queryObject(id);
	}
	
	@Override
	public List<DepartmentTagsEntity> queryList(Map<String, Object> map){
		return departmentTagsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return departmentTagsDao.queryTotal(map);
	}
	
	@Override
	public void save(DepartmentTagsEntity departmentTags){
		departmentTags.setCreateTime(DateUtil.now());
		departmentTagsDao.save(departmentTags);
	}
	
	@Override
	public void update(DepartmentTagsEntity departmentTags){
		departmentTagsDao.update(departmentTags);
	}
	
	@Override
	public void delete(Integer id){
		departmentTagsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		departmentTagsDao.deleteBatch(ids);
	}
	@Override
	public List<DepartmentTagsEntity> queryAllAt() {
		return departmentTagsDao.queryAllAt();
	}
}
